<?php require('header.php'); ?>


<h2>Izpildītāji &amp; grupas</h2>
<table>
	<tr>
		<th>#</th>
		<th><a href="?sort=artist">Izpildītājs</a></th>
		<th><a href="?sort=atsk_cnt">Atskaņojumi</a></th>
		<th><a href="?sort=last_atsk">Pēdējoreiz atskaņots</a></th>
	</tr>
	<?php $i = 0; foreach($artists as $artist): $i++; ?>
	<tr>
		<td class="number"><?= $i ?>.</td>
		<td><a href="artists.php?id=<?= $artist['id'] ?>"><?= $artist['name'] ?></a></td>
		<td class="number"><?= $artist['total'] ?></td>
		<td class="date"><?= strftime('%d.%m.%Y %H:%M:%S',$artist['last']) ?> (<?= sprintf(day_literal($artist['daycnt']), $artist['daycnt']) ?>)</td>
	</tr>
	<?php endforeach; ?>
</table>
<br />


<?php require('footer.php'); ?>
